package com.tensquare.friend.service;

import com.tensquare.friend.dao.NoFriendDao;
import com.tensquare.friend.pojo.NoFriend;
import net.bytebuddy.asm.Advice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by WF on 2020/12/23 16:56
 */
@Service
public class NoFriendService {
    @Autowired
    private NoFriendDao noFriendDao;
    //1.添加非好友
    public void addNoFriend(String id, String friendid) {
        NoFriend nofriend = new NoFriend(id,friendid);
        noFriendDao.save(nofriend);
    }
}
